home *** CD-ROM | disk | FTP | other *** search
/ Sun Solutions 1997 April to September / Sun Solutions CD - APR '97 - SEP '97 (704-3778-12 Rev. H)(Sun Microsystems, Inc.)(1997).iso / products / Hyperion / src / Makefile.svr4 < prev    next >
Makefile  |  1997-02-26  |  3KB  |  86 lines

  1. #
  2. # @(#)Makefile.svr4    1.5    4/17/94
  3. #
  4. # NOTE: this is not for Solaris.  Use the regular Makefile for that OS.
  5. #
  6.  
  7. CC=/usr/ucb/cc
  8.  
  9. # Set these to the locations of your XView include files and libraries.
  10. INCDIR = -I/usr/ucbinclude -I/usr/X386/include
  11. LIBDIR = /usr/X386/lib
  12.  
  13. # Set these to the directory names in which to install the software and
  14. # help files.  HLPDIR should point to wherever the other XView ".info"
  15. # files live.
  16. BINDIR = /usr/local/bin
  17. HLPDIR = /usr/X386/lib/X11/help
  18.  
  19. # Set this to the directory containing manual pages.  Manual pages will only
  20. # be installed if you "make install.man".
  21. MANDIR = /usr/local/man
  22.  
  23. # Set these to the manual sections (e.g. 1, 4, 5, l) for the program and
  24. # database file manual pages, respectively.
  25. PEXT = 1
  26. DEXT = 5
  27.  
  28. # And you shouldn't need to change anything from this line on.
  29.  
  30. ############################################################################
  31. # Parameters.
  32.  
  33. PROGRAM = workman
  34. OBJECTS = workman_stubs.o database.o cdinfo.o display.o setup.o \
  35.     ui_cdinfo.o plat_sun.o plat_hpux.o plat_linux.o plat_news.o \
  36.     plat_bsd386.o plat_ultrix.o cdrom.o scsi.o drv_toshiba.o drv_sony.o \
  37.     plat_svr4.o plat_freebsd.o plat_osf1.o
  38. SOURCES.c = workman_stubs.c database.c cdinfo.c display.c setup.c \
  39.     ui_cdinfo.c plat_sun.c plat_hpux.c plat_linux.c plat_news.c \
  40.     plat_bsd386.c plat_ultrix.c cdrom.c scsi.c drv_toshiba.c drv_sony.c \
  41.     plat_svr4.c plat_freebsd.c plat_osf1.c
  42. SOURCES.h = struct.h workman_ui.h
  43.  
  44. # Compiler flags.
  45.  
  46. CFLAGS = -g -DSVR4 -D_RUSAGE_DEF $(INCDIR)
  47. LDFLAGS = -L$(LIBDIR)
  48. LDLIBS = -lxview -lolgx -lX11
  49.  
  50. # Standard targets.
  51.  
  52. all:     $(PROGRAM) $(PROGRAM).doc workmandb.doc
  53.  
  54. $(PROGRAM): $(SOURCES.c) $(OBJECTS)
  55.     LD_RUN_PATH=$(LIBDIR) export LD_RUN_PATH ;  $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
  56.  
  57. root:
  58.     chown root $(PROGRAM)
  59.     chmod 4755 $(PROGRAM)
  60.  
  61. clean:
  62.     rm $(OBJECTS) *.BAK *.delta core
  63.  
  64. install: $(PROGRAM)
  65.     cp $(PROGRAM) $(BINDIR)
  66.     cp $(PROGRAM).info $(HLPDIR)
  67.     chmod 644 $(HLPDIR)/$(PROGRAM).info
  68.  
  69. install.man: workman.man workmandb.man $(MANDIR)/man$(PEXT) $(MANDIR)/man$(DEXT)
  70.     cp workman.man $(MANDIR)/man$(PEXT)/workman.$(PEXT)
  71.     chmod 644 $(MANDIR)/man$(PEXT)/workman.$(PEXT)
  72.     cp workmandb.man $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)
  73.     chmod 644 $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)
  74.  
  75. display.o: display.c workman_ui.h
  76. setup.o: setup.c workman_ui.h
  77. workman_stubs.o: workman_stubs.c workman_ui.h
  78. ui_cdinfo.o: ui_cdinfo.c workman_ui.h
  79. # This next one isn't completely true, but close enough
  80. $(OBJECTS): struct.h
  81.  
  82. $(PROGRAM).doc: $(PROGRAM).man
  83.     nroff -man $(PROGRAM).man > $(PROGRAM).doc
  84. workmandb.doc: workmandb.man
  85.     nroff -man workmandb.man > workmandb.doc
  86.